import java.util.Scanner;

public class Main1317 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        double x = (n - 2) * 180;
        System.out.println(String.format("%.1f", x/n ));
    }
}
